/* ====================================================================
 * (#)Header: EntityWebServiceImpl.java
 * (#)Revision: 
 * (#)Date Created: 22-Mar-08 12:47:15 AM
 * (#)Created By: Karol Wozniak
 * ====================================================================
 *
 * Copyright (c) 2007 karolak .  All rights reserved.
 *
 * ====================================================================
 * 
 * The software application represented here is the sole property of 
 * karolak. Its unauthorized utilization is expressly prohibited.
 * 
 * ====================================================================
 */
package com.karolak.ws;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.jws.WebService;

import com.karolak.entity.Person;

/**
 * <code>EntityWebServiceImpl</code> is used to ....
 * 
 * @author <a href="mailto:kwozniak@hotmail.com">Karol Wozniak</a>
 */
@WebService(endpointInterface = "com.karolak.ws.EntityWebServiceSei", serviceName = "EntityWebService", portName = "WebServicePort")
public class EntityWebServiceImpl implements EntityWebServiceSei {

	@Override
	public Person findPerson(Integer id) {
		return null;
	}

	@Override
	public Person createPerson(Person person) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Person> selectPerson() {
		List<Person> list = new ArrayList<Person>();
		Person person = new Person();
		person.setFirstName("firstName");
		person.setLastName("lastName");
		Person person2 = new Person();
		person2.setFirstName("firstName2");
		person2.setLastName("lastName2");

		list.add(person);
		list.add(person2);
		System.out.println(getClass().getName()  + " called at "+ new Date());
		return list;
	}

	@Override
	public int selectPersonCount() {
		// TODO Auto-generated method stub
		return 0;
	}
}
